package com.ossean.projectmanager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;

import com.ossean.projectmanager.hotwords.UpdateOspTags;
import com.ossean.projectmanager.projectsfilter.ProjectsFilter;

@Component
public class UpdateOspTagsMain {
	@Qualifier("updateTags")
	@Autowired
	private UpdateOspTags updateTags;
	
	public void start(){
//		updateTags.updateOspTags();
		updateTags.restorePrjTaggings();
	}
	
	public static void main(String[] args){
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:/applicationContext*.xml");
		UpdateOspTagsMain mainClass = applicationContext.getBean(UpdateOspTagsMain.class);
		mainClass.start();
	}
}
